<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<LinkListModel>" %>
<%@ Import Namespace="Netkk.Core"%>

<%@ Import Namespace="Netkk.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>
        <%=Html.Encode(Model.Category) %>
        Links - .NET-Stammtisch Konstanz-Kreuzlingen</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        <%=Html.Encode(Model.Category)%>
        Links</h1>
    <%foreach (LinkModel link in Model.Links)
      {%>
    <h3>
        <%= Html.Encode(link.Name)%></h3>
    <p>
        <%= link.Description%><br />
        <a href="<%= link.Url%>" class="website button">Weiter zur Website...</a>
        <%
            if (link.AllowEditOrAdd)
            {
        %>
        <a href="<%=Html.Action("Link", "Edit", link.Id)%>" class="websiteedit button">Bearbeiten</a>
        <%
            }%></p>
    <%} %>
    <%
        if (Model.ShowCreateLink)
        {
    %>
    <p>
        &nbsp;</p>
    <p>
        <a href="<%=Html.Action("Link", "Create", Model.Category)%>" class="websiteadd button">
            Neuen Link erstellen</a></p>
    <%
        }%>
</asp:Content>
